<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html">
    <meta http-equiv="X-UA-Compatible" content="ie=edge,chrome=1">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="email=no">
    <script src="../assets/flexible/flexible.debug.js"></script>
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>送礼助手</title>
    <link rel="stylesheet" href="../css/reset.css">
    <link rel="stylesheet" href="../css/give.min.css">
    <link rel="stylesheet" href="../assets/swiper/css/swiper.min.css">
    <link rel="stylesheet" href="../assets/font/iconfont.css">
</head>

<body>

    <header class="header">
        <div class="iconfont left index">&#xe607;返回</div>
        <div class="center">送礼助手</div>
        <div class="right"></div>
    </header>
    <nav class="nav">
        <ul>
            <li class="on">送礼助手</li>
            <li class="kit">送礼锦囊</li>
        </ul>
    </nav>
    <div class="div"></div>
    <main class="main">
        <h2>二步找到送礼好茶</h2>
        <div class="dian">
            <div class="round on"></div>
            <div class="round one"></div>
            <div class="xian"></div>
        </div>
        <div class="kou">
            <div class="on">送给谁</div>
            <div class="one">为啥送</div>
        </div>
        <ul class="ul1">
            <li>
                <dl>
                    <dt><img src="https://m.zuipin.cn/wap/images/v8/fumu.png"></dt>
                    <dd>送父母</dd>
                </dl>
            </li>
            <li>
                <dl>
                    <dt><img src="https://m.zuipin.cn/wap/images/v8/lingdao.png"></dt>
                    <dd>送领导</dd>
                </dl>
            </li>
            <li>
                <dl>
                    <dt><img src="https://m.zuipin.cn/wap/images/v8/kehu.png"></dt>
                    <dd>送客户</dd>
                </dl>
            </li>
            <li>
                <dl>
                    <dt><img src="https://m.zuipin.cn/wap/images/v8/haoyou.png"></dt>
                    <dd>送好友</dd>
                </dl>
            </li>
            <li>
                <dl>
                    <dt><img src="https://m.zuipin.cn/wap/images/v8/daoshi.png"></dt>
                    <dd>送导师</dd>
                </dl>
            </li>
            <li>
                <dl>
                    <dt><img src="https://m.zuipin.cn/wap/images/v8/tongshi.png"></dt>
                    <dd>送同事</dd>
                </dl>
            </li>
        </ul>
        <footer class="footer xia">
            <p>下一步</p>
        </footer>
    </main>
    <div class="why">
        <h2>二步找到送礼好茶</h2>
        <div class="dian">
            <div class="round one"></div>
            <div class="round on"></div>
            <div class="xian"></div>
        </div>
        <div class="kou">
            <div class="one">送给谁</div>
            <div class="on">为啥送</div>
        </div>
        <ul class="ul2">
            <li>
                <dl>
                    <dt><img src="https://m.zuipin.cn/wap/images/v8/shengri.png"></dt>
                    <dd>生日</dd>
                </dl>
            </li>
            <li>
                <dl>
                    <dt><img src="https://m.zuipin.cn/wap/images/v8/jinianri.png"></dt>
                    <dd>纪念日</dd>
                </dl>
            </li>
            <li>
                <dl>
                    <dt><img src="https://m.zuipin.cn/wap/images/v8/qiaoqian.png"></dt>
                    <dd>乔迁</dd>
                </dl>
            </li>
            <li>
                <dl>
                    <dt><img src="https://m.zuipin.cn/wap/images/v8/xinian.png"></dt>
                    <dd>新年</dd>
                </dl>
            </li>
            <li>
                <dl>
                    <dt><img src="https://m.zuipin.cn/wap/images/v8/ganen.png"></dt>
                    <dd>感谢</dd>
                </dl>
            </li>
            <li>
                <dl>
                    <dt><img src="https://m.zuipin.cn/wap/images/v8/zhongqiu.png"></dt>
                    <dd>中秋</dd>
                </dl>
            </li>
        </ul>
        <footer class="footer">
            <div class="shang">上一步</div>
            <div class="cha">查看结果</div>
        </footer>
    </div>
    <div class="check">
        <h2>为您推荐<span>12</span>款商品</h2>
        <div class="Check">
            <script type="text/html" id="template">
                {{each str v}}
                <dl>
                    <dt><img src="{{v.dt}}"></dt>
                    <dd class="dd1">{{v.dd1}}</dd>
                    <dd class="dd2">{{v.dd2}}</dd>
                    <dd class="dd3">{{v.dd3}}</dd>
                    <dd class="dd4">{{v.dd4}}</dd>
                </dl>
                {{/each}}
            </script>
        </div>
        <div class="senter">
            <p>没有更多了哦～</p>
        </div>
        <div class="footer">
            <div class="chong">重新选择</div>
            <div class="hui">回首页</div>
        </div>
    </div>
    <script src="../assets/jquery/jquery-3.2.1.min.js"></script>
    <script src="../js/index.js"></script>
    <script src="../assets/swiper/js/swiper.min.js"></script>
    <script src="../assets/artTemplate/template-web.js"></script>
    <script>
        jQuery(function ($) {
            $.ajax({
                type: "GET",
                url: "../json/self.json",
                dataType: 'json',
                success: function (data) {
                    var arr = template('template', {
                        str: data
                    });
                    $('.Check').html(arr);
                }
            })
        })
        $(function () {
            $('.index').click(function () {
                history.back();
            })
            $('li').click(function () {
                $(this).addClass('on').siblings().removeClass('on');
            });
            $('.ul1 li').click(function () {
                $(this).addClass('on').siblings().removeClass('on');
                $('.xia').addClass('on');
            });

            $('.ul2 li').click(function () {
                $(this).addClass('on').siblings().removeClass('on');
                $('.cha').addClass('on');
            });

            $('.xia').click(function () {
                if ($(".ul1 li").hasClass('on')) {
                    $('.why').show();
                    $('.main').hide();
                }
            })

            $('.shang').click(function () {
                $('.why').hide();
                $('.main').show();
            })

            $('.cha').click(function () {
                if ($(".ul2 li").hasClass('on')) {
                    $('.check').show();
                    $('.why').hide();
                    $('.div').hide();
                }
            })

            $('.chong').click(function () {
                location.href = "give.html"
            })
            $('.hui').click(function () {
                location.href = "../index.html"
            })
            $('.kit').click(function () {
                location.href = "../html/kit.html"
            })
        })
    </script>
</body>

</html>